package com.jweb.framework.util.log4j.dto;

import java.io.Serializable;

import com.jweb.framework.util.FormatUtil;

public class Mogo implements Serializable {
	private static final long serialVersionUID = 3961785484144099991L;

	private String msgId;// 业务流水号
	private String bizCode;// 业务类型
	private String sourcesName;
	private String sourcesIp;// 来源IP
	private String currentName;
	private String currentIp;// 当前IP
	private String classPath;// 代码地址
	private String logName;// 日志名称
	private String msg;// 报文
	private String remark;// 备注
	private String thread;// 线程
	private long localTime;// 当前时间

	@Override
	public String toString() {
		return FormatUtil.toJSONString(this);
	}

	public Mogo() {
	}

	public Mogo(String msgId, String bizCode, String sourcesName, String sourcesIp, String currentName, String currentIp, String classPath, String logName,
			String msg, String remark, String thread, long localTime) {
		super();
		this.msgId = msgId;
		this.bizCode = bizCode;
		this.sourcesName = sourcesName;
		this.sourcesIp = sourcesIp;
		this.currentName = currentName;
		this.currentIp = currentIp;
		this.classPath = classPath;
		this.logName = logName;
		this.msg = msg;
		this.remark = remark;
		this.thread = thread;
		this.localTime = localTime;
	}

	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}

	public String getBizCode() {
		return bizCode;
	}

	public void setBizCode(String bizCode) {
		this.bizCode = bizCode;
	}

	public String getSourcesIp() {
		return sourcesIp;
	}

	public void setSourcesIp(String sourcesIp) {
		this.sourcesIp = sourcesIp;
	}

	public String getCurrentIp() {
		return currentIp;
	}

	public void setCurrentIp(String currentIp) {
		this.currentIp = currentIp;
	}

	public String getClassPath() {
		return classPath;
	}

	public void setClassPath(String classPath) {
		this.classPath = classPath;
	}

	public String getLogName() {
		return logName;
	}

	public void setLogName(String logName) {
		this.logName = logName;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getThread() {
		return thread;
	}

	public void setThread(String thread) {
		this.thread = thread;
	}

	public long getLocalTime() {
		return localTime;
	}

	public void setLocalTime(long localTime) {
		this.localTime = localTime;
	}

	public String getSourcesName() {
		return sourcesName;
	}

	public void setSourcesName(String sourcesName) {
		this.sourcesName = sourcesName;
	}

	public String getCurrentName() {
		return currentName;
	}

	public void setCurrentName(String currentName) {
		this.currentName = currentName;
	}

}
